﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LCA.Community.DAL.Model;

namespace LCA.Community.DAL.Interfaces
{
    /// <summary>
    /// The interface for answers votes repositories
    /// </summary>
    public interface IAnswersVotesRepository : IBaseRepository<AnswerVote>
    {
        List<AnswerVote> GetAnswerVotesByAnswer(string answerID);
        void DeleteAllAnswerVotes(string answerID);
        List<AnswerVote> GetAnswerVotesByUser(string userID);
        bool HasUserVoted(string userID, string answerID);
        void DeleteAllUserVotes(string userID);
    }
}
